package sk.fiit.vppj.eventmanager.data;

/**
 * Data class which contains basic data about project. Class is not immutable, please don't change it until it is neccessary
 * 
 * @author Marek
 * 
 */
public final class BasicProject {

	private int id = 0;
	private String name;
	private String category;
	private String status;

	public BasicProject() {

	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCategory() {
		return this.category;
	}

	public void setCategory(String cat) {
		this.category = cat;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if( this == obj )
			return true;
		if( obj == null )
			return false;
		if( getClass() != obj.getClass() )
			return false;
		BasicProject other = ( BasicProject ) obj;
		if( id != other.id )
			return false;
		return true;
	}

}
